package com.s59.ch01.entity;

import java.util.List;

public class Page {
    private Integer pageNo;
    private Integer pageSize;
    private Integer pageSum;
    private Integer pageCount;
    private List<Employee> list;

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPageSum() {
        return pageSum;
    }

    public void setPageSum(Integer pageSum) {
        this.pageSum = pageSum;
    }

    public Integer getPageCount() {
        return pageCount;
    }

    public void setPageCount(Integer pageCount) {
        this.pageCount = pageCount;
        this.pageSum = pageCount%this.pageSize == 0 ? pageCount/this.pageSize:pageCount/this.pageSize+1;
    }

    public List<Employee> getList() {
        return list;
    }

    public void setList(List<Employee> list) {
        this.list = list;
    }
}
